package com.visionarysoftwaresolutions

class PictureController {

    def scaffold = Picture
    
    def getPic() {
      def pic = Picture.get( params.id )
      if(!pic){
          return "No picture found"
      }
      response.outputStream << pic.image
    }
}
